package com.xingmang.db.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
    * 
    * </p>
* @author hss
* @since 2023-06-30
*/
@Data
@TableName("tb_oa_flow")
@ApiModel(value = "OaFlow对象", description = "")
public class OaFlow implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("OA流程")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("流程名称")
    @TableField("flow_name")
    private String flowName;

    @ApiModelProperty("流程所属分类")
    @TableField("category_id")
    private Long categoryId;

    @ApiModelProperty("流程排序")
    @TableField("flow_order")
    private Integer flowOrder;

    @ApiModelProperty("流程地址")
    @TableField("flow_url")
    private String flowUrl;

    @ApiModelProperty("创建人ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean isDeleted;

}
